from typing import Optional

from fastapi import FastAPI
from pydantic import BaseModel
import uvicorn
if __name__ == '__main__':

    uvicorn.run(app='main:app', host="0.0.0.0",
                port=8000, reload=False, debug=False)
app = FastAPI()


class Item(BaseModel):

    row: list[int] = []


@app.post("/items")
async def update_item(item: Item):
    results = {"item": item}
    return results
